#ifndef BALL_3D_H
#define BALL_3D_H
#include "stdafx.h"
#include "Vector_3d.h"
class Ball_3D
{
public:
	Ball_3D( double x1=0,double y1=0,double z1=0,double vx1=0,double vy1=0,double vz1=0, double r1=BALL_RADIUS,double m1=1 )
	{
		X.x=x1;
		X.y=y1;
		X.z=z1;
		V.x=vx1;
		V.y=vy1;
		V.z=vz1;
		r=r1;
		m=m1;
	}
	Ball_3D(  const Ball_3D& two )
	{
		X=two.X;
		V=two.V;
		r=two.r;
		m=two.m;
	}
	Ball_3D( Vector_3D x, Vector_3D v,  double r1=BALL_RADIUS,double m1=1 )
	{
		X=x;
		V=v;
		r=r1;
		m=m1;
	}
	Ball_3D& operator=( const Ball_3D& two )
	{
		if( this!=&two )
		{
			X=two.X;
			V=two.V;
			r=two.r;
			m=two.m;
		}
		return *this;
	}
	inline void setPosition( double a,double b, double c )
	{
		X.x=a;
		X.y=b;
		X.z=c;
	}
	inline void setPosition(  Vector_3D &vec )
	{
		X=vec;
	}
	inline void setVelocity( double a,double b,double c )
	{
		V.x=a;
		V.y=b;
		V.z=c;
	}
	inline void setVelocity( Vector_3D& vec )
	{
		V=vec;
	}
	Vector_3D X;
	Vector_3D V;
	double r;
	double m;

};
#endif
